import request from '@/utils/request'

// 查询studentcourse列表
export function listStudentCourse(query) {
  return request({
    url: '/studentcourse/studentCourse/list',
    method: 'get',
    params: query
  })
}

// 查询studentcourse详细
export function getStudentCourse(teacherId) {
  return request({
    url: '/studentcourse/studentCourse/' + teacherId,
    method: 'get'
  })
}

// 新增studentcourse
export function addStudentCourse(data) {
  return request({
    url: '/studentcourse/studentCourse',
    method: 'post',
    data: data
  })
}

// 修改studentcourse
export function updateStudentCourse(data) {
  return request({
    url: '/studentcourse/studentCourse',
    method: 'put',
    data: data
  })
}

// 删除studentcourse
export function delStudentCourse(teacherId) {
  return request({
    url: '/studentcourse/studentCourse/' + teacherId,
    method: 'delete'
  })
}
